#include "APP_Motor_Modbus.h"
void ReadHoldReg_Callback(uint16_t *hold_reg, uint16_t reg_len)
{
    float target_angel = 0;
    float max_speed = 0;
    memcpy(&target_angel, hold_reg, sizeof(float));
    memcpy(&max_speed, hold_reg + 2, sizeof(float));
    printf("target_angel:%f,max_speed:%f", target_angel, max_speed);

    App_motor_Value_SetTargetAngel(target_angel);
    App_motor_Value_SetMaxSpeedPRM(max_speed);

    App_Motor_Start();
    
}
